|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.vtp.framework.interactions.core.support.Widget
org.eclipse.vtp.framework.interactions.voice.vxml.EventHandler
org.eclipse.vtp.framework.interactions.voice.vxml.Catch
public class Catch
The Catch class can be used to handle any error or event type.
It is typically employed to implement user defined events and errors.
Though it can be used to intercept the "nomatch" and "noinput" events, these
should be handled by the dedicated element types NoMatch and
NoInput respectively.
| Field Summary | |
|---|---|
protected java.lang.String |
eventName
The name of the event or error to catch. |
| Constructor Summary | |
|---|---|
Catch(java.lang.String eventName)
Creates a new instance of Catch that will be executed when
the event or error named by the eventName argument is
generated during call processing. |
|
Catch(java.lang.String eventName,
int count)
Creates a new instance of Catch that will be executed when
the countth occurrence of the event or error
named by the eventName argument is generated during call
processing. |
|
Catch(java.lang.String eventName,
java.lang.String condition)
Creates a new instance of Catch that will be executed when
the event or error named by the eventName argument is
generated during call processing and the expression in the
condition evaluates to true. |
|
Catch(java.lang.String eventName,
java.lang.String condition,
int count)
Creates a new instance of Catch that will be executed when
the countth occurrence of the event or error
named by the eventName argument is generated during call
processing and the expression in the condition evaluates to
true. |
|
| Method Summary | |
|---|---|
java.lang.String |
getEventName()
Returns the name of the event or error to catch. |
void |
setEventName(java.lang.String eventName)
Sets the name of the event or error to catch. |
protected void |
writeAttributes(org.xml.sax.helpers.AttributesImpl attributes)
Write the attribute members of this handler to the supplied set. |
void |
writeWidget(org.xml.sax.ContentHandler outputHandler)
Writes the content of this widget to an XML content handler. |
| Methods inherited from class org.eclipse.vtp.framework.interactions.voice.vxml.EventHandler |
|---|
addAction, addIfClause, getActionsAndIfClauses, getCondition, getCount, removeAction, removeIfClause, setCondition, setCount, writeActionsAndIfClauses |
| Methods inherited from class org.eclipse.vtp.framework.interactions.core.support.Widget |
|---|
toString, writeAttribute, writeChildren, writeChildren, writeWidget, writeWidget |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String eventName
| Constructor Detail |
|---|
public Catch(java.lang.String eventName)
throws java.lang.IllegalArgumentException,
java.lang.NullPointerException
Catch that will be executed when
the event or error named by the eventName argument is
generated during call processing.
eventName - The name of the event or error to catch.
java.lang.IllegalArgumentException - If the supplied event name is empty.
java.lang.NullPointerException - If the supplied event name is
null.
public Catch(java.lang.String eventName,
int count)
throws java.lang.IllegalArgumentException,
java.lang.NullPointerException
Catch that will be executed when
the countth occurrence of the event or error
named by the eventName argument is generated during call
processing.
eventName - The name of the event or error to catch.count - Specifies which occurrence of the event to catch.
java.lang.IllegalArgumentException - If the supplied event name is empty.
java.lang.NullPointerException - If the supplied event name is
null.
public Catch(java.lang.String eventName,
java.lang.String condition)
throws java.lang.IllegalArgumentException,
java.lang.NullPointerException
Catch that will be executed when
the event or error named by the eventName argument is
generated during call processing and the expression in the
condition evaluates to true.
eventName - The name of the event or error to catch.condition - An expression that evaluates to a boolean that determines
whether or not this catch element will execute.
java.lang.IllegalArgumentException - If the supplied event name is empty.
java.lang.IllegalArgumentException - If the supplied condition is empty.
java.lang.NullPointerException - If the supplied event name is
null.
public Catch(java.lang.String eventName,
java.lang.String condition,
int count)
throws java.lang.IllegalArgumentException,
java.lang.NullPointerException
Catch that will be executed when
the countth occurrence of the event or error
named by the eventName argument is generated during call
processing and the expression in the condition evaluates to
true.
eventName - The name of the event or error to catch.condition - An expression that evaluates to a boolean that determines
whether or not this catch element will execute.count - Specifies which occurrence of the event to catch.
java.lang.IllegalArgumentException - If the supplied event name is empty.
java.lang.IllegalArgumentException - If the supplied condition is empty.
java.lang.NullPointerException - If the supplied event name is
null.| Method Detail |
|---|
public java.lang.String getEventName()
public void setEventName(java.lang.String eventName)
throws java.lang.IllegalArgumentException,
java.lang.NullPointerException
eventName - The name of the event or error to catch.
java.lang.IllegalArgumentException - If the supplied event name is empty.
java.lang.NullPointerException - If the supplied event name is
null.
public void writeWidget(org.xml.sax.ContentHandler outputHandler)
throws java.lang.NullPointerException,
org.xml.sax.SAXException
Widget
writeWidget in class WidgetoutputHandler - The handler to write this widget to.
java.lang.NullPointerException - If the supplied content handler is
null.
org.xml.sax.SAXException - If the writing of this widget fails.protected void writeAttributes(org.xml.sax.helpers.AttributesImpl attributes)
EventHandler
writeAttributes in class EventHandlerattributes - The attribute set to write to.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||